package edu.uj.petri.controller;

import edu.uj.petri.view.Canvas;

/**
 * handles events connected with diagram. All dimensions are 
 *  given in Units.
 */
public interface EventHandler {
    public void click(double x, double y);

    public void doubleClick(double x, double y);

    public void mouseMove(double x1, double y1, int button);
    
    public void mouseDragged( double x, double y );

    public void mouseButtonDown(double x, double y);

    public void mouseButtonUp(double x, double y);

    public void rightClick(double x, double y);

    /**
     * handles Escape and Delete
     */
    public void keyPressed(int keyCode);    

}
